package cn.xjfcloud.onedriveserver.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.xjfcloud.onedriveserver.dao.CommonConfigMapper;
import cn.xjfcloud.onedriveserver.pojo.InitConfig;
import cn.xjfcloud.onedriveserver.pojo.dto.CommonConfig;

@Service
public class CommonConfigService {

	@Autowired
	private CommonConfigMapper commonConfigMapper;
	
	public CommonConfig getCommonConfigById(Integer id) {
		CommonConfig commonConfig = commonConfigMapper.getCommonConfigById(id);
		return commonConfig;
	}
	
	public Integer updateCommonConfig(CommonConfig commonConfig) {
		Integer count = commonConfigMapper.updateCommonConfigById(commonConfig);
		return count;
	}
}
